#include "esp8266.h"
void esp8266_init(void){
	HAL_Delay(150);
	HAL_UART_Transmit(&huart1,(uint8_t *)"AT+RST\r\n",9,0xFFFF);
	HAL_Delay(150);
//HAL_UART_Transmit(&huart1,(uint8_t *)"AT+ATEO\r\n",9,0xFFFF);
//HAL_Delay(150);
	HAL_UART_Transmit(&huart1,(uint8_t *)"AT+CWMODE=2\r\n",14,0xFFFF);
	HAL_Delay(150);
	HAL_UART_Transmit(&huart1,(uint8_t *)"AT+CWSAP=\"ATK_ESP8266m\",\"12345689\",6,4\r\n",45,0xFFFF);
	HAL_Delay(150);
	HAL_UART_Transmit(&huart1,(uint8_t *)"AT+CIPMUX=1\r\n",14,0xFFFF);
	HAL_Delay(150);
	HAL_UART_Transmit(&huart1,(uint8_t *)"AT+CIPSERVER=1\r\n",17,0xFFFF);

	
	
}